private boolean IDrule(String ID) {
    boolean rule = false;
    if (ID.length() == 10) {
      ID = ID.toUpperCase();
      byte s[] = ID.getBytes();
      if (s[0] >= 65 && s[0] <= 90) {
        int[] c = new int[11];
        int a[] = {
            10, 11, 12, 13, 14, 15, 16, 17, 34, 18, 19, 20, 21, 22, 35, 23, 24,
            25,
            26, 27, 28, 29, 32, 30, 31, 33};
        c[0] = a[ (s[0]) - 65] / 10;
        c[1] = a[ (s[0]) - 65] % 10;
        for (int i = 1; i <= 9; i++) {
          c[i + 1] = s[i] - 48;
        }
        int count = c[0];
        for (int i = 1; i <= 9; i++) {
          count += c[i] * (10 - i);
        }
       
		if ( ( (count % 10) + c[10]) % 10==0) {
		     rule = true;
		   }
      }
    }
    return (rule);
  }